Conversation
|
@evergreen-lee-campbell Thank you for your contribution.
/(\r?\n?)([ \t]*)(<!--\s*build:(\w+(?:-\w+)*)\s*-->)\n?([\s\S]*?)\n?(<!--\s*endbuild\s*-->)\n?/igor /(\n?|\r\n?)([ \t]*)(<!--\s*build:(\w+(?:-\w+)*)\s*-->)\n?([\s\S]*?)\n?(<!--\s*endbuild\s*-->)\n?/igjust work without any new config options? Could you test it please? |
|
I like this option. And I already use @evergreen-lee-campbell 's repository in my |
|
Notepad and sublime aren't attempting to do line endings normalization and basically ok with mixed LF and CRLF in one file. But if one using Visual Studio or there is a git autocrlf then there is an extra lines problem. Regexp that solved problem for me: |
|
I have tried, modified my local dependent version as what @evergreen-lee-campbell committed. it works fine! why @VFK doesn't merge it to master and release it? |
|
I wrote a test case project as below:
template file is from src/index.html, and output file is dist/index.html. endbuild but in Windows, the character 0x0a presents 3 times between the two tags. |
Added a 'useCRLF' option to prevent a new linefeed appearing every time the gulp task is run on Windows machines.
Resolves #42